# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-lzo
pkgver=1.14
pkgrel=1
pkgdesc="Python bindings for the LZO data compression library"
url="https://github.com/jd-boyd/python-lzo"
arch="all"
license="GPL-2.0-or-later"
depends="python3"
makedepends="
	lzo-dev
	py3-build
	py3-installer
	py3-setuptools
	py3-wheel
	python3-dev
	"
checkdepends="py3-nose"
source="https://github.com/jd-boyd/python-lzo/archive/v$pkgver/py3-lzo-$pkgver.tar.gz"
builddir="$srcdir/python-lzo-$pkgver"

build() {
	python3 -m build --skip-dependency-check --no-isolation --wheel .
}

check() {
	python3 -m nose
}

package() {
	python3 -m installer -d "$pkgdir" dist/python_lzo-$pkgver-*.whl
}

sha512sums="
0a541c247fe86007662ca107889e7d84da0c33881d74078bab0c178c2de0d72d27bc8bc1907ac750efd61fa3fd0a09f05188b5fe1c17f5dacc3428a24379da46  py3-lzo-1.14.tar.gz
"
